// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ETSTerminologyException.java

package com.sunwayhorizo.health.ets.exceptions;

import com.sunwayhorizo.health.ets.exceptions.common.ETSDAOException;
import com.sunwayhorizo.health.hl7.factories.EtsFactory;

public class ETSTerminologyException extends RuntimeException
{

    public static final String RCS_ID = "$Header: ETSTerminologyException.java 115.18 2005/05/20 01:07:09 ggarg noship $";
    private String m_mesg;
    private String m_tokenName[];
    private String m_tokenValue[];
    private String m_translatedMesg;
   
    private static EtsFactory daoFactory;

    public ETSTerminologyException()
    {
    }

    public ETSTerminologyException(String s)
    {
        super(s);
        m_translatedMesg = s;
    }

    public ETSTerminologyException(String s, String s1, String s2)
    {
        m_mesg = s;
        m_tokenName = new String[1];
        m_tokenValue = new String[1];
        m_tokenName[0] = s1;
        m_tokenValue[0] = s2;
    }

    public String getMessage()
    {
        if(m_translatedMesg == null && m_mesg != null)
        {
           
        }
        if(m_translatedMesg == null || m_translatedMesg.length() == 0)
            if(m_mesg == null)
                m_translatedMesg = getClass().getName() + " : No message text available for this exception";
            else
                m_translatedMesg = getClass().getName() + " : No message text exists for the message : " + m_mesg;
        return m_translatedMesg;
    }

    public String toString()
    {
        String s = getClass().getName() + " : " + getMessage();
        return s;
    }

}
